package com.helpustotravel.servlet;

import java.io.IOException;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.helpustotravel.core.ServletBase;
import com.helpustotravel.model.dao.TravellerDAO;

@SuppressWarnings("serial")
public class VueServlet extends ServletBase {

	public static String NAME = "Vue";
	
	protected HttpServletResponse doTache(HttpServletRequest req, HttpServletResponse resp) throws IOException {
		
		TravellerDAO travellerDao = new TravellerDAO(pm);
		int n = travellerDao.getNumberOfTravellers();
		
		resp.getWriter().println(n);
		return resp;
	}

}
